#pragma once
#include "UIControl.h"
#include "UIPad.h"
// CGamePadWnd

class CGamePadWnd : public CWnd, CUIControl
{
	
	DECLARE_DYNAMIC(CGamePadWnd)

public:
	CGamePadWnd();
	virtual ~CGamePadWnd();

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnPaint();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
public:
	void Render(CDC *pDC);
	virtual void PerformAction(UIAction action);
	
	BOOL ParseGamePadXml();
public:

	CUIPad m_uiPad;
	
};

extern CGamePadWnd g_wndGamePad;

